import React, { Component } from 'react';
import {
    Text,
    StyleSheet
    } from 'react-native'
import {Actions} from 'react-native-router-flux'

export default class Cart extends Component {

    componentDidMount(){
      console.log(this.props)
    }

    componentWillReceiveProps(next) {
      console.log('cart componentWillReceiveProps')
      console.log(next)
      if (next.cart) {
        console.log('cart refresh ....')
      }
    }

    onEnter() {
      console.log('cart on enter =======')
    }

    render() {
      console.log('cart render')
      return (
        <Text style={styles.page} >this is cart page</Text>
      )
    };
}

const styles =  StyleSheet.create({
    page : {
        backgroundColor:'red',
        fontSize:18,
        flex:1
    }
})